import logging

fm = "%(asctime)s-%(levelname)s-[%(filename)s-%(funcName)s()-%(lineno)d]-%(message)s"

logging.basicConfig(level=logging.INFO, format=fm, filename="./hello.log")


def hello():
    logging.debug("-->debug信息")
    logging.info("-->info信息")
    logging.warning("-->warning信息")
    logging.error("-->error信息")
    logging.critical("-->critical信息")


hello()
